import request from '@/utils/request'

// 小区列表
export function listCommunity(query) {
  return request({
    url: '/system/community/list',
    method: 'get',
    params: query
  })
}

// 删除小区
export function delCommunity(data) {
  return request({
    url: '/system/community/delete',
    method: 'post',
	data:data
  })
}

// 新增小区
export function insertCommunity(data) {
  return request({
    url: '/system/community/insert',
    method: 'post',
	data:data
  }) 
}

// 编辑小区
export function editCommunity(data) {
  return request({
    url: '/system/community/edit',
    method: 'post',
	data:data
  }) 
}

// 所有小区
export function allListCommunity() {
  return request({
    url: '/system/community/allList',
    method: 'get'
  }) 
}